//============================================================================
// Name        : Function3.cpp
// Author      : Anthony Varghese
// Version     :
// Copyright   : You are free to use this in any way
// Description : Example of use of Functions - signatures and overloading
//============================================================================

#include <iostream>
using namespace std;

int func( int a, double b){
	return a++ + b;
}
int func( int& x, int y){
	return x++ + y;
}
int func1( int x, int y, int z=1){
	return x + y + z;
}
int main() {
	int x = 100, y = 200;
	cout << " Initial values: x is " << x << " and y is " << y << endl;
	int z = func1(x, y, 4);
	cout << " x is " << x << " and y is " << y
			<< " and func returns " << z << endl;
	z = func(x, y);
	cout << " x is " << x << " and y is " << y
			<< " and func returns " << z << endl;
	return 0;
}
